﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace wp8nop.Model
{
    public interface IDataService
    {
        ObservableCollection<ProdottoViewModel> Carrello { get; set; }

        void GetAllProductsDisplayedOnHomePage(Action<ObservableCollection<ProdottoViewModel>, Exception> callback);
        void GetProducts(Action<List<ProdottoViewModel>, Exception> callback, Categoria selCat, string SearchString, int Page);
        void AddToCart(ProdottoViewModel prod);

        List<Categoria> GetCategorie();

        List<Categoria> GetSubCategorie(string cat);

        double GetTotaleCarrello();
        double GetSpedizioni();

        void ClearCarrello();
    }
}
